<div class="modal fade" id="content_error" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Nhập nội dung báo lỗi</h4>
            </div>
            <form action="{{route('tao-bao-loi')}}" method="post" >
                {{ Form::token() }}
                <div class="modal-body">
                    <div class="form-group">
                        <input type="hidden" class="title_error" name="data[Error][title]" value=""/>
                        
                        <input type="hidden" name="data[Error][link]" value="{{Request::url()}}"/>
                        <label for="message-text" class="control-label"></label>
                        <textarea class="form-control" rows="5" id="message-text" name="data[Error][content]"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Đóng</button>
                    <button type="submit" class=" btn btn-primary">Gửi</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
   $(document).ready(function () {
               $('.title_error').attr("value",$("title").text());
            });
</script>